<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets" 
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core" 
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:rich="http://richfaces.ajax4jsf.org/rich" 
	xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
	xmlns:t="https://code.google.com/p/rad-framework/taglib" 
	xmlns:tt="https://code.google.com/p/rad-framework"
	xmlns:s="http://jboss.com/products/seam/taglib">

	<f:view>
		<h:form id="sidebarForm" enctype="multipart/form-data">
			<rich:panel style="width:192px" styleClass="rich-panel-action">

				<c:if test="#{finder.renderCreate}">
					<h:outputLink id="createLink" 
						styleClass="rad-framework-action-panel"
						value="#{contextPath}/jsf/#{finderViewPath}#{entityName}/Edit.seam">
						<h:outputText styleClass="rad-framework-action-create" value="#{messages['Create']}"
							title="#{messages['CreateDoc']}" />
					</h:outputLink>
				</c:if>

				<ui:insert name="searchnav">
					<h:outputLink id="chartsLink" 
						styleClass="rad-framework-action-panel" rendered="#{renderCharts}"
						value="#{contextPath}/jsf/#{finderViewPath}#{entityName}/Charts.seam">
						<h:outputText styleClass="rad-framework-action-charts"	value="#{messages['Charts']}"
							title="#{messages['ChartsDoc']}" />
					</h:outputLink>
				</ui:insert>

				<ui:insert name="printnav">
					<h:outputLink id="printLink"
						value="#{contextPath}/pdf/#{finderViewPath}#{entityName}/#{entityName}List.seam"
						target="_blank" styleClass="rad-framework-action-panel" rendered="#{renderPrint}">
						<h:outputText styleClass="rad-framework-action-print" value="#{messages['PDF']}" 
							title="#{messages['PDFDoc']}" />
					</h:outputLink>

					<h:outputLink id="excelLink"
						value="#{contextPath}/xls/#{finderViewPath}#{entityName}/#{entityName}.seam"
						styleClass="rad-framework-action-panel" rendered="#{renderExcel}">
						<h:outputText styleClass="rad-framework-action-excel" value="#{messages['Excel']}"
							title="#{messages['ExcelDoc']}" />
					</h:outputLink>
				</ui:insert>

				<ui:insert name="impexpnav">
					<h:outputLink id="exportLink"
						value="#{contextPath}/export/#{finderName}"
						target="_blank" styleClass="rad-framework-action-panel" rendered="#{renderExport}">
						<h:outputText styleClass="rad-framework-action-export" value="#{messages['Export']}"
							title="#{messages['ExportDoc']}" />
					</h:outputLink>

					<ui:include src="/themes/default/includes/import.xhtml" />
				</ui:insert>

			</rich:panel>

			<rich:spacer width="1" height="10" />

			<ui:insert name="beforeRecent" />

			<ui:include src="/themes/default/includes/recent.xhtml" />

			<ui:insert name="filters">
				<ui:include src="/themes/default/includes/myfilters.xhtml" />
				<ui:include src="/themes/default/includes/filter.xhtml" />
			</ui:insert>

			<ui:remove>
				<ui:include src="/themes/default/includes/conversations.xhtml" />
			</ui:remove>
			
		</h:form>
	</f:view>
</ui:composition>